import com.yanjingzheng.entity.*;

/**
 * @Author Yenchingcheng
 * @Date 2023/9/11 11:28
 * @Description 测试类
 **/
public class Main {

    public static void main(String[] args) {
        Shape circle = new Circle();
        ShapeDecorator redCircle = new RedShapeDecorator(new Circle());
        ShapeDecorator redRectangle = new RedShapeDecorator(new Rectangle());

        System.out.println("Circle with nomalBorder:");
        circle.draw();

        System.out.println("\nCicle with redBorder:");
        redCircle.draw();

        System.out.println("\nRectangle with redBorder:");
        redRectangle.draw();
    }
}
